package com.olive.controller;

import java.util.Random;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.olive.dto.Order;

@RestController
@RequestMapping("/order")
public class OrderController {

	@RequestMapping("/findById/{id}")
	public Order findById(@PathVariable("id") Integer id) {
		System.out.println(id);
		Order order = new Order();
		order.setId(new Random().nextInt(100));
		return order;
	}

}
